/**
 * 
 */
package com.bagtrack.dao.impl;

import java.util.HashMap;

import org.hibernate.Session;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.bagtrack.dao.IJobDAO;
import com.bagtrack.model.Job;
import com.bagtrack.model.SearchQuery;


/**
 *
 * @author Brian Boyle
 * Nov 16, 2011
 */
public class JobDAOImpl extends HibernateDaoSupport implements IJobDAO {

    /**
     * {@inheritDoc}
     */
    @Override
    public void saveJob(Job job) {
        getHibernateTemplate().save(job);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public HashMap<String, String> searchJobs(SearchQuery query) {
        Session session = getHibernateTemplate().getSessionFactory().getCurrentSession();
        session.beginTransaction();
        session.createQuery("");
        return new HashMap();
    }


}
